import request from '@/utils/request'

// 查询用户健康列表
export function listHealthWay1(query) {
  return request({
    url: '/healthWay1/healthWay1/list',
    method: 'get',
    params: query
  })
}

// 查询用户健康详细
export function getHealthWay1(id) {
  return request({
    url: '/healthWay1/healthWay1/' + id,
    method: 'get'
  })
}

// 新增用户健康
export function addHealthWay1(data) {
  return request({
    url: '/healthWay1/healthWay1',
    method: 'post',
    data: data
  })
}

// 修改用户健康
export function updateHealthWay1(data) {
  return request({
    url: '/healthWay1/healthWay1',
    method: 'put',
    data: data
  })
}

// 删除用户健康
export function delHealthWay1(id) {
  return request({
    url: '/healthWay1/healthWay1/' + id,
    method: 'delete'
  })
}
